package stdying.handyweibo.injection.module;

import android.content.Context;

import com.sina.weibo.sdk.auth.Oauth2AccessToken;

import dagger.Module;
import dagger.Provides;
import stdying.handyweibo.injection.PreActivity;
import stdying.handyweibo.openapi.weibo.AccessTokenKeeper;

/**
 * Description: WeiboTokenModule
 * Author: liulili
 * Created: 2015-11-24
 */
@Module
public class WeiboTokenModule {
    @Provides
    @PreActivity
    Oauth2AccessToken provideWeiboToken(Context context){
        return AccessTokenKeeper.readAccessToken(context);
    }
}
